package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.AccessoryDao;
import com.hf.eagle.domain.Accessory;
import com.hf.eagle.service.AccessoryService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-09-06 23:44
 */
@Service
public class AccessoryServiceImpl implements AccessoryService {

	@Resource
	private AccessoryDao accessoryDao;
	

	public Long createAccessory(Accessory t) {
		return this.accessoryDao.insertEntity(t);
	}

	public Accessory getAccessory(Accessory t) {
		return this.accessoryDao.selectEntity(t);
	}

	public Long getAccessoryCount(Accessory t) {
		return this.accessoryDao.selectEntityCount(t);
	}

	public List<Accessory> getAccessoryList(Accessory t) {
		return this.accessoryDao.selectEntityList(t);
	}

	public int modifyAccessory(Accessory t) {
		return this.accessoryDao.updateEntity(t);
	}

	public int removeAccessory(Accessory t) {
		return this.accessoryDao.deleteEntity(t);
	}

	public List<Accessory> getAccessoryPaginatedList(Accessory t) {
		return this.accessoryDao.selectEntityPaginatedList(t);
	}

}
